package me.olook.netease.song.rank.entity;

import com.google.gson.annotations.SerializedName;
import org.springframework.data.domain.Sort;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhaohw
 * @date 2018-05-23 14:08
 */
@Entity
@Table(name = "weibo_user")
public class WeiboUser implements Serializable {

    private static final long serialVersionUID = 8596307347995899184L;

    @Id
    @Column(name = "uid")
    private String uid;

    @SerializedName(value = "nick_name")
    @Column(name = "nick_name")
    private String nickName;

    @Column(name = "gender")
    private String gender;

    @Column(name = "avatar")
    private String avatar;

    @Column(name = "source")
    private String source;

    @SerializedName(value = "follow_count")
    @Column(name = "follow_count")
    private Integer followCount;

    @SerializedName(value = "followers_count")
    @Column(name = "followers_count")
    private Integer followersCount;

    @SerializedName(value = "origin_text")
    @Column(name = "origin_text")
    private String originText;

    @SerializedName(value = "simple_text")
    @Column(name = "simple_text")
    private String simpleText;

    @Column(name = "position")
    private String position;

    @Column(name = "description")
    private String description;

    @SerializedName(value = "registration_time")
    @Column(name = "registration_time")
    private Date registrationTime;

    @SerializedName(value = "crt_time")
    @Column(name = "crt_time")
    private Date crtTime;

    @SerializedName(value = "created_at")
    @Column(name = "created_at")
    private String createdAt;

    @SerializedName(value = "add_by")
    @Column(name = "add_by")
    private String addBy;

    @Transient
    private int page;

    @Transient
    private int size;

    @Transient
    private Sort sort;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getFollowCount() {
        return followCount;
    }

    public void setFollowCount(Integer followCount) {
        this.followCount = followCount;
    }

    public Integer getFollowersCount() {
        return followersCount;
    }

    public void setFollowersCount(Integer followersCount) {
        this.followersCount = followersCount;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getOriginText() {
        return originText;
    }

    public void setOriginText(String originText) {
        this.originText = originText;
    }

    public String getSimpleText() {
        return simpleText;
    }

    public void setSimpleText(String simpleText) {
        this.simpleText = simpleText;
    }

    public Date getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    public String getAddBy() {
        return addBy;
    }

    public void setAddBy(String addBy) {
        this.addBy = addBy;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Sort getSort() {
        return sort;
    }

    public void setSort(Sort sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "WeiboUser{" +
                "uid='" + uid + '\'' +
                ", nickName='" + nickName + '\'' +
                ", gender='" + gender + '\'' +
                ", position='" + position + '\'' +
                ", avatar='" + avatar + '\'' +
                ", description='" + description + '\'' +
                ", followCount=" + followCount +
                ", followersCount=" + followersCount +
                ", source='" + source + '\'' +
                ", originText='" + originText + '\'' +
                ", simpleText='" + simpleText + '\'' +
                ", registrationTime=" + registrationTime +
                ", crtTime=" + crtTime +
                ", addBy='" + addBy + '\'' +
                '}';
    }
}
